using SqlSugar;
using System;

namespace EasyAdmin.Admin.Entity.Entities
{
    /// <summary>
    /// 系统用户表
    /// </summary>
    [SugarTable("sys_user")]
    public class SysUser : BaseEntity
    {

        /// <summary>
        /// 用户名
        /// </summary>
        [SugarColumn(Length = 50, IsNullable = false)]
        public string Username { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [SugarColumn(Length = 100, IsNullable = false)]
        public string Password { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        [SugarColumn(Length = 50)]
        public string NickName { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        [SugarColumn(Length = 100)]
        public string Email { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        [SugarColumn(Length = 20)]
        public string Mobile { get; set; }

        /// <summary>
        /// 状态（0：禁用，1：启用）
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 最后登录时间
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public DateTime? LastLoginTime { get; set; }
    }
}